<template>
  <div>
    <div class="onAccount-detail-card-box" :class="ticketMode ? 'show' : 'hide'">
      <!-- 餐厅名字 -->
      <div class="title">一粒米餐厅</div>
      <div class="description">【挂账回款单】</div>
      <!-- 回款单号 -->
      <div class="desc-item">
        <div>回款单号：</div>
        <span>HK-20210730-001</span>
      </div>
      <!-- 回款时间 -->
      <div class="desc-item">
        <div>回款时间：</div>
        <span>2026-07-08 12:56:25</span>
      </div>
      <!-- 回款账户 -->
      <div class="desc-item">
        <div>回款账户：</div>
        <span>李先生</span>
      </div>
      <!-- 操作人 -->
      <div class="desc-item">
        <div>操作人：</div>
        <span>管理员</span>
      </div>
      <!-- 消费单号 -->
      <div class="desc-item">
        <div>消费单号：</div>
        <span>消费金额</span>
      </div>
      <div class="desc-line"></div>
      <div class="desc-item">
        <div>YJN555512255222</div>
        <span>300.00</span>
      </div>

      <div class="desc-line"></div>
      <!-- 回款合计 -->
      <div class="desc-item">
        <div>回款合计</div>
        <span>300.00</span>
      </div>
      <!-- 支付方式 -->
      <div class="desc-item">
        <div>支付方式：</div>
        <span>支付宝/会员卡号</span>
      </div>
      <!-- 会员卡号 -->
      <!-- <div class="desc-item">
        <div>会员卡号：</div>
        <span>YLM15512512365</span>
      </div> -->
      <!-- 餐厅地址 -->
      <div class="address-phone-box">
        <div>餐厅地址：贵阳市南明区中华南路52号钻石广场3006</div>
        <div>餐厅电话：400-0851-123</div>
        <div>技术支持：贵州一粒米科技餐饮软件服务有限公司</div>
      </div>
    </div>
  </div>
</template>

<script setup>
// import { computed } from 'vue'
// import { useStore } from 'vuex'

// const store = useStore()
// const ticketMode = computed(() => store.getters.ticketMode)
</script>

<style lang="scss" scoped>
.hide {
  display: none !important;
  transition: all 1s !important;
}
.show {
  display: block !important;
  width: 420px !important;
  transition: all 1s !important;
}
.onAccount-detail-card-box {
  width: 420px;
  height: 986px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 3px 0px 24px 0px rgba(0, 0, 0, 0.16);
  box-sizing: border-box;
  padding: 30px;
  transition: all 1s !important;

  .title {
    font-size: 20px;
    font-family: PingFang SC, PingFang SC-Bold;
    font-weight: 700;
    text-align: center;
    color: #333333;
  }
  .description {
    font-size: 16px;
    font-family: PingFang SC, PingFang SC-Bold;
    font-weight: 700;
    text-align: center;
    color: #333333;
    margin: 10px 0;
  }
  .desc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 14px;
    font-family: PingFang SC, PingFang SC-Bold;
    font-weight: 700;
    color: #333333;
  }
  .desc-line {
    width: 360px;
    height: 1px;
    background: #e2e2e2;
    margin-top: 10px;
  }
  .desc-title {
    font-size: 16px;
    font-family: PingFang SC, PingFang SC-Bold;
    font-weight: 700;
    text-align: center;
    color: #333333;
    margin: 20px 0 10px 0;
  }
  .address-phone-box {
    margin-top: 50px;
    font-size: 14px;
    font-family: PingFang SC, PingFang SC-Regular;
    font-weight: 400;
    text-align: center;
    color: #333333;
    line-height: 24px;
    > div {
      margin-bottom: 10px;
    }
  }
}
</style>
